import { Banner, Menu } from '../types/home'
import { Goods } from '../types/goods'
import request from '../utils/request'

export const getBannerList = () => {
	return request<Banner[]>({
		url: 'banner/list'
	})
}

export const getMenuList = () => {
	return request<Menu[]>({
		url: 'menu/list'
	})
}

export const getGoodsList = (data : { count : number; limitNum : number }) => {
	return request<Goods[]>({
		url: 'pro/list',
		data
	})
}